<template>
	<view>
		<pageheader :setting="settingdata"></pageheader>
		<view class="skulist">
			<image src="" mode="" style="background-color: #bbb;" class="goodimg mr30"></image>
			<view class="skuright">
				<view class="goodsku">
					<view class="clamp4">显示米径</view>
					<view class="">显示米径</view>
					<view class="">显示米径</view>
					<view class="">显示米径</view>
				</view>
				<view class="flex_align">
					<view class="skubtn mr30">编辑</view>
					<view class="skubtn">删除</view>
				</view>
			</view>
		</view>

		<view class="submitbox">
			<navigator url="./addsku" open-type="navigate" hover-class="none" class="submitbtn">
				添加规格
			</navigator>
			<view class="submitbtn sub" @click="submit">完成</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				settingdata: {
					name: '货品规格',
					bgColor: '#fff',
					titleColor: '#000000',
					showNav: true,
					showTypes: 0,
					position: "skupage"
				},
			};
		}
	}
</script>

<style lang="scss">
	page {
		background: #F5F5F5;
	}

	.mr30 {
		margin-right: 30rpx;
	}

	.skulist {
		padding: 30rpx 20rpx;
		margin: 30rpx;
		display: flex;
		background: #fff;

		.goodimg {
			background-color: #bbb;
			width: 210rpx;
			height: 210rpx;
		}

		.skuright {
			display: flex;
			flex: 1;


			.goodsku {
				flex: 1;

			}
		}

		.skubtn {
			width: 90rpx;
			text-align: center;
			background: #F5F5F5;
			padding: 10rpx 15rpx;
			border-radius: 45rpx;
		}

	}

	.submitbox {
		padding: 39rpx 0 calc(env(safe-area-inset-bottom) + 39rpx) 0;
		padding: 39rpx 0;
		display: flex;
		align-items: center;
		flex-direction: column;
		background: #fff;
		width: 100%;
		position: fixed;
		bottom: 0;
		z-index: 99;

		.submitbtn {
			width: 680rpx;
			height: 90rpx;
			border-radius: 45rpx;
			background: linear-gradient(86deg, #38BE8C, #05ADBB);
			text-align: center;
			line-height: 90rpx;
			color: #fff;
			font-size: 34rpx;
			font-weight: bold;
			margin-bottom: 30rpx;
		}

		.sub {
			background: linear-gradient(86deg, #39BF8D, #39BF8D);
		}
	}

	.clamp4 {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		overflow: hidden;
	}
</style>
